// 全局一些需要计算的样式值
export const globalStyle = {
	// 内容左右padding值，rpx
	globalPadding_lr: 34,
}

// 数据处理获取事件
export const initImages = function(lodImgsListContainer) {
	let nweImgsListContainer = [];
	lodImgsListContainer.forEach(item => {
		if (item.src) {
			for (let i in item.src) {
				if (i === 'original') item.url = item.src[i];
			}
		}
		nweImgsListContainer.push(item);
	});
	return nweImgsListContainer;
}

export const weatherToosStyle = function(value) {
	console.log(value);
	let initSwitch = false;
	if (initSwitch) {
		initSwitch = true;
		return 0;
	}
	if (!initSwitch) {
		switch (value) {
			case "iPhone5" || "iPhone6" || "iPhone7" || "iPhone8":
				initSwitch = true;
				return '15px';
				break;
			case "iPhone6Plus" || "iPhone7Plus" || "iPhone8Plus(GSM+CDMA)<iPhone10,2>":
				initSwitch = true;
				return "10px";
				break;
				debugger;
		}
	}
}
